<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>取回一个名称已存在的计数器。</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.counter-class.getMeta.html">Counter::getMeta</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.counter-class.setCounterClass.html">Counter::setCounterClass</a></div>
 <div class="up"><a href="internals2.counter.counter-class.html">Counter</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="internals2.counter.counter-class.getNamed" class="refentry">
    <div class="refnamediv">
     <h1 class="refname">Counter::getNamed</h1>
     <p class="refpurpose"><span class="refname">Counter::getNamed</span> &mdash; <span class="dc-title">
      取回一个名称已存在的计数器。
     </span></p>

    </div>
    <div class="refsect1 description" id="refsect1-internals2.counter.counter-class.getNamed-description">
     <h3 class="title">说明</h3>
     <div class="methodsynopsis dc-description">
      <span class="modifier">static</span>
      <span class="type"><span class="type Counter">Counter</span></span> <span class="methodname"><strong>Counter::getNamed</strong></span>
       ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
      )</div>

     <p class="simpara">
      <span class="function"><strong>Counter::getNamed()</strong></span> 通过名称查询一个已存在的计数器，不存在则返回<strong><code>NULL</code></strong>。这是静态函数。
     </p>
    </div>

    <div class="refsect1 parameters" id="refsect1-internals2.counter.counter-class.getNamed-parameters">
     <h3 class="title">参数</h3>
     <dl>

      
       <dt>
<em><code class="parameter">name</code></em></dt>

       <dd>

        <span class="simpara">
         要查询的计数器名称。
        </span>
       </dd>

      
     </dl>

    </div>

    <div class="refsect1 returnvalues" id="refsect1-internals2.counter.counter-class.getNamed-returnvalues">
     <h3 class="title">返回值</h3>
     <p class="simpara">
      <span class="function"><strong>Counter::getNamed()</strong></span> 通过名称查询一个已存在的计数器，不存在则返回<strong><code>NULL</code></strong>。
     </p>
    </div>

   </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.counter-class.getMeta.html">Counter::getMeta</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.counter-class.setCounterClass.html">Counter::setCounterClass</a></div>
 <div class="up"><a href="internals2.counter.counter-class.html">Counter</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
